<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>科院酒店预订管理系统</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <!-- <link href="static/bootstrap/css/bootstrap.min.css" rel="stylesheet"> -->
    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">

</head>

<body>
<div th:insert="~{admin/commons/commons::nav}"></div>

<div class="container-fluid">
    <div class="row">
        <div th:insert="~{admin/commons/commons::sidebar}"></div>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <h1 style="margin-bottom: 20px">修改用户</h1>
            <div class="table-responsive">
                <form th:action="@{/toUpdateUser}" method="post">
                <div class="form-group" hidden="hidden">
                    <lable>用户id</lable>
                    <input th:value="${empId.getId()}" type="text" name="id" class="form-control"
                           placeholder="请输入用户名">
                </div>
                <div class="form-group">
                    <lable>用户名称</lable>
                    <input th:value="${empId.getUsername()}" type="text" name="username" class="form-control"
                           placeholder="请输入用户名">
                </div>
                <div class="form-group">
                    <lable>用户密码</lable>
                    <input th:value="${empId.getPassword()}" type="password" name="password" class="form-control"
                           placeholder="">
                </div>
                <div class="form-group">
                    <lable>权限</lable>
                    <select class="form-control" name="roleId">
                        <option th:each="roles:${role}" th:text="${(roles.getId())==1?'超级管理员':'管理员'}"
                                th:value="${roles.getId()}"></option>
                    </select>
                </div>
                <div class="form-group">
                    <lable>电话号码</lable>
                    <input th:value="${empId.getPhone()}" type="text" name="phone" class="form-control"
                           placeholder="">
                </div>
                <div class="form-group">
                    <lable>性别</lable>
                    <div class="form-check form-check-inline">
                        <input th:checked="${empId.getSex()==1}" class="form-check-input" type="radio" name="sex"
                               value="1">
                        <lable class="form-check-label">男</lable>
                    </div>
                    <div class="form-check form-check-inline">
                        <input th:checked="${empId.getSex()==0}" class="form-check-input" type="radio" name="sex"
                               value="0">
                        <lable class="form-check-label">女</lable>
                    </div>
                </div>

                <div class="form-group">
                    <lable>年龄</lable>
                    <input th:value="${empId.getAge()}" type="text" name="age" class="form-control" placeholder="">
                </div>
                <div class="form-group">
                    <lable>地址</lable>
                    <input th:value="${empId.getAddress()}" type="text" name="address" class="form-control"
                           placeholder="请输入地址">
                </div>
                <button type="submit" class="btn btn-primary">修改</button>
            </form>
            </div>
        </main>
    </div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" th:src="@{/js/jquery-3.2.1.slim.min.js}"></script>
<script type="text/javascript" th:src="@{/js/popper.min.js}"></script>
<script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
<!-- Icons -->
<script type="text/javascript" th:src="@{/js/feather.min.js}"></script>
<script>
    feather.replace()
</script>
</body>
</html>